package com.czp.infosharingplatformapp.service;

import com.czp.infosharingplatformapp.model.UserPostRecord;

import java.util.List;
import java.util.Map;

public interface UserPostRecordService {
    void recordView(Long userId, Long postId); // 记录用户浏览日志
    Map<String, Integer> computeUserTagPreferences(Long userId); // 根据标签统计用户偏好
    Map<String, Integer> computeUserCategoryPreferences(Long userId); // 根据分类统计用户偏好
    List<UserPostRecord> getUserRecords(Long userId);
    boolean hasUserViewedPost(Long userId, Long postId);
}